﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Home.Haushalt.Lib
{
    /// <summary>
    /// 
    /// </summary>
    public class ElementExtensionAttribute : Attribute
    {
        /// <summary></summary>
        protected String _group;
        /// <summary></summary>
        public String Group { get { return this._group; } }

        /// <summary></summary>
        protected int _mainMenuSort=-1;
        /// <summary></summary>
        public int MainMenuSort { get { return this._mainMenuSort; } }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="group"></param>
        public ElementExtensionAttribute(String group)
        {
            Init(group, -1);
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="group"></param>
        /// <param name="mainMenuSort"></param>
        public ElementExtensionAttribute(String group, int mainMenuSort)
        {
            Init(group,mainMenuSort);
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="group"></param>
        /// <param name="mainMenuSort"></param>
        private void Init(String group, int mainMenuSort)
        {
            this._group = group;
            this._mainMenuSort = mainMenuSort;
        }
    }
}
